package org.jeecg.modules.demo.jxcx.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.jxcx.Utils.R;
import org.jeecg.modules.demo.jxcx.dto.OpenidAccountDTO;
import org.jeecg.modules.demo.jxcx.po.JxcUser;
import org.jeecg.modules.demo.jxcx.po.SystemVo;

import java.util.List;

/**
* @author DeskTop
* @description 针对表【jxc_user】的数据库操作Service
* @createDate 2024-07-23 17:17:19
*/
public interface JxcUserService extends IService<JxcUser> {
    /**
     * 获取openId
     * @param systemVo
     * @return
     */
    JSONObject getOpenid(SystemVo systemVo) throws Exception;

    OpenidAccountDTO queryDefault(String openid) throws Exception;


    JxcUser getByAccount(String account);

    List<JxcUser> getByConpanyId(String companyId);

    JxcUser getByivcode(String ivcode);

    R exdate(JSONObject json);

    R add(JSONObject json);

    R DXFW(JSONObject params) throws Exception;

    R YZMYZ(JSONObject params);

    R companyisregister(JSONObject params);

    R ivcodeisregister(JSONObject params);

    JxcUser getByphone(String phone);
}
